//
//  MHTable+Query.h
//  数据库的读写封装
//
//  Created by zsgjs on 2017/2/21.
//  Copyright © 2017年 zsgjs. All rights reserved.
//

#import "MHTable.h"

@interface MHTable (Query)

- (id)queryNextValueField:(NSString *)field andWhere:(NSString *)where;

- (NSDictionary *)queryDictWithWhere:(NSString *)where;

- (NSArray *)queryAll;

- (NSArray *)queryWithWhere:(NSString *)where;

- (NSArray *)queryAllValueWithFields:(NSString *)fields andWhere:(NSString *)where;

- (NSArray *)queryWithWhere:(NSString *)where
                     fields:(NSString *)fields
                       page:(NSUInteger)page
                   pageSize:(NSUInteger)pagesize;

-(NSArray *)queryWithWhere:(NSString *)where
                    fields:(NSString *)fields
                      page:(NSUInteger)page
                  pageSize:(NSUInteger)pagesize
                     order:(NSString *)order;

@end
